package com.morequick.model;

import java.io.Serializable;

public class Product implements Serializable{
	private Integer id; //id
	private String name; // 名字
	private Integer price; // 价格
	private String thumb; // 缩略图
	private Integer isTop; // 是否顶置
	private Integer isRecommend; 
	private Integer isNew; // 
	private Integer isOnsale;
	private Integer isHot;
	private Integer stock; // 库存
	private Integer sortOrder; // 排序
	private String depict; // 
	private String content; // 
	private String createdAt; //创建时间 
	private String updatedAt; //修改时间
	private Category category;


	public Integer getIsOnsale() {
		return isOnsale;
	}

	public void setIsOnsale(Integer isOnsale) {
		this.isOnsale = isOnsale;
	}

	public Integer getIsHot() {
		return isHot;
	}

	public void setIsHot(Integer isHot) {
		this.isHot = isHot;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Product(){
		
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public String getThumb() {
		return thumb;
	}
	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	public Integer getIsTop() {
		return isTop;
	}
	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}
	public Integer getIsRecommend() {
		return isRecommend;
	}
	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getIsNew() {
		return isNew;
	}
	public void setIsNew(Integer isNew) {

		if(isNew==1)
			this.isNew =isNew;
		else
			this.isNew =isNew;
	}


	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	public Integer getSortOrder() {
		return sortOrder;
	}
	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}
	public String getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(String updatedAt) {
		this.updatedAt = updatedAt;
	}

	public String getDepict() {
		return depict;
	}

	public void setDepict(String depict) {
		this.depict = depict;
	}

	@Override
	public String toString() {
		return "Product [id=" + id + ", name=" + name + ", price=" + price + ", thumb=" + thumb + ", isTop=" + isTop
				+ ", isRecommend=" + isRecommend + ", isNew=" + isNew + ", isOnsale=" + isOnsale + ", isHot=" + isHot
				+ ", stock=" + stock + ", sortOrder=" + sortOrder + ", depict=" + depict + ", content=" + content
				+ ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + ", category=" + category + "]";
	}

	


	
	
	
	
	
	
    
	
}
